package com.example.demo.service;


import com.example.demo.entity.Assignment;
import java.util.List;

public interface AssignmentService {

    Assignment createAssignment(Assignment assignment);

    Assignment getAssignmentById(Long id);

    List<Assignment> getAssignmentsByCourseId(Long courseId);

    List<Assignment> getAllAssignments();

    Assignment updateAssignment(Assignment assignment);

    boolean deleteAssignment(Long id);

    boolean deleteAssignmentsByCourseId(Long courseId);

    List<Assignment> getActiveAssignments();

    int countAssignmentsByCourseId(Long courseId);
}